﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Common.Model
{
    //如果好用，请收藏地址，帮忙分享。
    public class CreateOrderItemListItem
    {
        /// <summary>
        /// 
        /// </summary>
        public double goodsId { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public double skuId { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public int skuNum { get; set; }
    }

    public class PddPifaCreateOrder
    {
        /// <summary>
        /// 
        /// </summary>
        public List<CreateOrderItemListItem> createOrderItemList { get; set; }
    }



    //如果好用，请收藏地址，帮忙分享。
    public class Sku_vosItem
    {
        /// <summary>
        /// 
        /// </summary>
        public double goods_id { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public double group_id { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public double sku_id { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public int sku_number { get; set; }
    }

    //生成订单用的
    public class PifaClientOrderCreate
    {
        /// <summary>
        /// 
        /// </summary>
        public double address_id { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string anti_content { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public int front_env { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string page_id { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public int pay_app_id { get; set; } = 2;
        /// <summary>
        /// 
        /// </summary>
        public string secret_key { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public List<Sku_vosItem> sku_vos { get; set; }
    }

    //如果好用，请收藏地址，帮忙分享。
    public class Attribute_fields
    {
        /// <summary>
        /// 
        /// </summary>
        public string forbid_contractcode { get; set; } = "1";
        /// <summary>
        /// 
        /// </summary>
        public string forbid_pappay { get; set; } = "1";
        /// <summary>
        /// 
        /// </summary>
        public int paid_times { get; set; } = 0;
    }

    public class PiFaPrePay
    {
        /// <summary>
        /// 
        /// </summary>
        public Attribute_fields attribute_fields { get; set; } = new Attribute_fields();
        /// <summary>
        /// 
        /// </summary>
        public string parent_order_sn { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public int pay_app_id { get; set; } = 9;
        /// <summary>
        /// 
        /// </summary>
        public string return_url { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public int version { get; set; } = 3;
    }


}
